package com.itheima.stock.service;

import com.itheima.stock.common.domain.*;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.vo.resp.R;
import org.springframework.stereotype.Repository;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

@Repository
//定义草啊总股票的服务接口
public interface StockService {

    R<List<StockBusiness>> getAllStockBusiness();

    //查询所有股票主营业务信息
    R<List<StockBusiness>> findAllBusiness();

    //获取国内大盘数据的实时数据
    R<List<InnerMarketDomain>> innerIndexAll();

    //国内板块指数
    R<List<SectorBlockDomain>> sectorAllLimit();

    //沪深两市个股涨幅的行情
    R<List<StockIncreaseDomain>> stockIncreaseLimit();

    R<PageResult<StockIncreaseDomain>> stockAllLimit(Integer page,Integer pageSize);

    R<Map> getStockUpDownCount();

    void stockExport(HttpServletResponse response, Integer page, Integer pageSize);
}
